home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscMailApp.h < prev    next >
Encoding:
Text File  |  1995-04-17  |  1.2 KB  |  48 lines

  1. //
  2. //    MiscMailApp.h -- an API to NeXT's Mail.app
  3. //        Modified by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  4. //                Version 1.1.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <misckit/MiscString.h>
  15. #import <misckit/MiscMailSpeaker.h>
  16. #import <objc/Object.h>
  17.  
  18. #define MISC_MAILAPP [MiscMailApp localMailer]
  19. #define MISC_NO_MAIL_WINDOW -1
  20.  
  21. @interface MiscMailApp:Object
  22. {
  23.     MiscString *hostName;
  24.     MiscMailSpeaker *theSpeaker;
  25.     int currentWindow;
  26.     BOOL noclutter, _initted;
  27. }
  28.  
  29. + (MiscMailApp *)localMailer;
  30. + (MiscMailApp *)mailerForHostNamed:aHost;
  31.  
  32. - hostname;
  33. - (BOOL)noclutter;
  34. - setNoclutter:(BOOL)flag;
  35.  
  36. - sendMailTo:to subject:subject body:body;
  37. - sendMailTo:to subject:subject body:body cc:cc andDeliver:(BOOL)flag;
  38.  
  39. - openWindow;
  40. - openWindow:sender;
  41. - setTo:sender;
  42. - setSubject:sender;
  43. - setCc:sender;
  44. - setBody:sender;
  45. - deliver;
  46. - deliver:sender;
  47.  
  48. @end